package cn.wolfcode.crm.query;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@NoArgsConstructor
public class ObjectQuery {
  //默认状态[标志符号]
    private int state = -1;

    private int page = 1;
    private int rows = 10;

    public ObjectQuery(int currentPage, int pageSize) {
        this.rows = pageSize;
        this.page = currentPage;
    }

    public int getStartIndex() {
        return (this.page - 1) * this.rows;
    }


}
